package com.edu.zju.scs.panacea.controller;

import com.edu.zju.scs.panacea.entity.BaseResult;
import com.edu.zju.scs.panacea.service.TestService;
import com.edu.zju.scs.panacea.service.manage.AdminService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: Yue Liang
 * @Date: 2019-02-13 19:04
 */
@Controller
@EnableAutoConfiguration
public class TestController {

    @Autowired
    private TestService testService;

    @ResponseBody
    @ApiOperation(value="管理员登录", notes="管理员登录")
    @RequestMapping(value = "/admin/test", method = RequestMethod.GET)
    public void adminTest() {
        testService.insertTestDevData();
    }
}
